//
//  HYOUGiftCollectionReusableView.m
//  BestGift
//
//  Created by 温晓宇 on 16/1/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HYOUGiftCollectionReusableView.h"

@interface HYOUGiftCollectionReusableView ()

@property(nonatomic, retain)UILabel *label;

@end

@implementation HYOUGiftCollectionReusableView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}
-(void)createSubViews{
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(0, 50, self.frame.size.width, 30)];
    //    self.lable.backgroundColor = [UIColor blackColor];
    self.label.textAlignment =  NSTextAlignmentCenter;
    [self addSubview:self.label];
}
-(void)setName:(NSString *)name{
    if (_name != name) {
        [_name release];
        _name = [name retain];
    }
    self.label.text = name;
}
@end
